LC_EVENT_LBDOWN Home

LiteCAD generates LC_EVENT_LBDOWN event when a user presses left mouse button while the cursor is inside of the graphics window.

The following properties are used for this event type:

Property Description
LC_PROP_EVENT_TYPE Value LC_EVENT_LBDOWN
LC_PROP_EVENT_WND Handle to a graphics window
LC_PROP_EVENT_DRW Handle to a drawing, viewed in the window
LC_PROP_EVENT_BLOCK Handle to active block (linked to the window)
LC_PROP_EVENT_FLOAT1
LC_PROP_EVENT_FLOAT2
X,Y cursor coordinates (drawing coordinate space)
LC_PROP_EVENT_INT1
LC_PROP_EVENT_INT2
X, Y cursor coordinates (window coordinate space, pixels)
LC_PROP_EVENT_INT3 State of Shift key: 1-pressed, 0-released
LC_PROP_EVENT_INT4 State of Ctrl key: 1-pressed, 0-released

In order to override LiteCAD default processing of this event, within the event procedure call lcEventReturnCode function with non-zero parameter.